package com.gridmobi.xrtb.domain.dsp.autoop;

import com.google.common.collect.Lists;
import com.gridmobi.xrtb.domain.dsp.JAffiliate;
import com.gridmobi.xrtb.domain.dsp.common.enums.StateE;

import java.util.List;

public class AutoSubIdConf {
    private Integer state = StateE.INVALID.code;
    /**
     * 作用于联盟
     */
    private List<Integer> applyAffs = Lists.newLinkedList();
    private JAffiliate affiliate;
    /**
     * 排除OFFER
     */
    private List<Integer> excludeOffer = Lists.newLinkedList();
    /**
     * 包含OFFER
     */
    private List<Integer> includeOffer = Lists.newLinkedList();
    /**
     * subid 更新算法
     */
    private String generateType;
    /**
     * 业绩检查周期 单位 day
     */
    private Integer checkPeriod = 1;
    /**
     * 业绩检查周期 单位 day
     */
    private Integer supplyPeriod = 2;
    private Integer supplySubidCount = 1;
    private Integer maxSubidCnt = 6;
    private Integer minSubidCnt = 1;
    /**
     * 1 增量,只补充不清除
     * 2 全量,补充前全量清除
     */
    private Integer supplyType = 1;

    public List<Integer> getApplyAffs() {
        return applyAffs;
    }

    public void setApplyAffs(List<Integer> applyAffs) {
        this.applyAffs = applyAffs;
    }

    public List<Integer> getExcludeOffer() {
        return excludeOffer;
    }

    public void setExcludeOffer(List<Integer> excludeOffer) {
        this.excludeOffer = excludeOffer;
    }

    public List<Integer> getIncludeOffer() {
        return includeOffer;
    }

    public void setIncludeOffer(List<Integer> includeOffer) {
        this.includeOffer = includeOffer;
    }

    public String getGenerateType() {
        return generateType;
    }

    public void setGenerateType(String generateType) {
        this.generateType = generateType;
    }

    public Integer getCheckPeriod() {
        return checkPeriod;
    }

    public void setCheckPeriod(Integer checkPeriod) {
        this.checkPeriod = checkPeriod;
    }

    public JAffiliate getAffiliate() {
        return affiliate;
    }

    public void setAffiliate(JAffiliate affiliate) {
        this.affiliate = affiliate;
    }

    public Integer getSupplyPeriod() {
        return supplyPeriod;
    }

    public void setSupplyPeriod(Integer supplyPeriod) {
        this.supplyPeriod = supplyPeriod;
    }

    public Integer getSupplySubidCount() {
        return supplySubidCount;
    }

    public void setSupplySubidCount(Integer supplySubidCount) {
        this.supplySubidCount = supplySubidCount;
    }

    public Integer getMaxSubidCnt() {
        return maxSubidCnt;
    }

    public void setMaxSubidCnt(Integer maxSubidCnt) {
        this.maxSubidCnt = maxSubidCnt;
    }

    public Integer getMinSubidCnt() {
        return minSubidCnt;
    }

    public void setMinSubidCnt(Integer minSubidCnt) {
        this.minSubidCnt = minSubidCnt;
    }

    public Integer getSupplyType() {
        return supplyType;
    }

    public void setSupplyType(Integer supplyType) {
        this.supplyType = supplyType;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
